package day03;

public class IfDemo {
    public static void main(String[] args) {
        /*
        double price=480.0;
        if (price>=500){
            price *=0.8;
            System.out.println("折扣后的价格为:"+price);
        }
        System.out.println("还未达到折扣标准，价格为:"+price);
        int age=17;
        if (age>=18&& age<=65){
            System.out.println("您属于壮年");
        }
        System.out.println("您不在壮年期");

         */



/*
        double Price=800.0;
        if (Price>=1000){
            Price*=0.6;
        }else {
            Price*=0.9;
        }
        System.out.println("折扣后的金额为:"+Price);

        int a=19;
        if (a%2==0){
            System.out.println("这个数为偶数");
        }else {
            System.out.println("这个数为奇数");
        }

 */




    }
}
